package com.ma.server.Impl;

import com.baomidou.mybatisplus.annotation.TableId;
import com.ma.Dao.MajorDao;
import com.ma.entity.Major;
import com.ma.server.MajorServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @ProjectName: teamProucer
 * @Package: com.ma.server.Impl
 * @ClassName: MajorServerImpl
 * @Author: YHHHH
 * @Description:
 * @Date: 2021/4/9 20:12
 * @Version: 1.0
 */
@Service
@Transactional
public class MajorServerImpl implements MajorServer {

    @Autowired
    private MajorDao majorDao;



    @Override
    public List<Major> findAllMajor() {
        List<Major> allMajor = majorDao.findAllMajor();
        return allMajor;
    }
}
